package cn.jetpiece.cloud.system.dp.app.config;

import cn.jetpiece.cloud.resource.config.BaseSwaggerConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;

@Configuration
public class SystemBpmSwaggerConfig {

    @Bean
    public Docket AssetApi() {
        return new Docket(DocumentationType.SWAGGER_2)
                .apiInfo(BaseSwaggerConfig.apiInfo())
                .groupName("datapipeline模块")
                .select()
                .apis(RequestHandlerSelectors.basePackage("cn.jetpiece.cloud.system.dp.app.modular.biz"))
                .paths(PathSelectors.any())
                .build()
                .globalOperationParameters(BaseSwaggerConfig.parameters());
    }
}
